﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace WindowsRemoteScripting.Action
{
    public class Load : AbstractCommand
    {
        public override void Run(object sender, EventArgs e)
        {
            OpenFileDialog fd = new OpenFileDialog();
            if (fd.ShowDialog() != DialogResult.OK) return;
            Form1.m_Form.textBoxScript.Text = File.ReadAllText(fd.FileName);
        }
    }
}
